package edu.berkeley.cs160.bravo.project;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;

public class Notifications extends Activity {
	private Button b_dismiss1, b_dismiss2, b_dismiss3;
	private LinearLayout ll_notifications;
	
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.notifications);
		
		b_dismiss1 = (Button) findViewById(R.id.b_dismiss1);
		b_dismiss2 = (Button) findViewById(R.id.b_dismiss2);
		b_dismiss3 = (Button) findViewById(R.id.b_dismiss3);
		ll_notifications = (LinearLayout) findViewById(R.id.ll_notifications);
		
		b_dismiss1.setOnClickListener(clickListener);
		b_dismiss2.setOnClickListener(clickListener);
		b_dismiss3.setOnClickListener(clickListener);
	}
	
    private Button.OnClickListener clickListener = new Button.OnClickListener() {
		@Override
		public void onClick(View v) {
			ll_notifications.removeView((View) v.getParent().getParent());
		}
    };
}